"""
    备周则意怠-常见则不疑
"""
import math
import random
import time
import pywasm
import requests

headers = {
    'User-Agent': 'yuanrenxue.project'  
}
url = "https://match.yuanrenxue.cn/api/match/15"
runtime = pywasm.load('main.wasm')

t1 = int(int(time.time()) / 2)
t2 = int(int(time.time()) / 2 - math.floor(random.random() * (50) + 1))
r = runtime.exec('encode', [t1, t2])
m = str(r) + '|' + str(t1) + "|" + str(t2)
print(m)
params = {
    'page': 1,
    'm': m
}

response = requests.get(url, headers=headers, params=params)
print(response.text)
